import Request from '../js_sdk/luch-request/luch-request/index.js' // 下载的插件
const http = new Request({
	// 测试
	// baseURL: "http://10.2.0.55",
	// 正式
	baseURL: "https://vips.xiongmaodaili.com",
})
http.interceptors.request.use((config) => {
	// #ifndef H5 
	config.header["Cookie"] = uni.getStorageSync("Cookie");
	// #endif
	config.header["Content-Type"] =  "application/json;charset=UTF-8";
	return config
})
http.interceptors.response.use((res) => {
	return res
})
export default http
